import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';

class TodoShadowBox extends StatelessWidget {
  TodoShadowBox({
    Key key,
    @required this.child,
    this.circular = 0,
    this.blurRadius = 0,
    this.spreadRadius = 0,
    this.margin = EdgeInsets.zero,
    this.padding = EdgeInsets.zero,
    this.color = Colors.black,
    this.constraints,
  }) : super(key: key);

  final Color color;
  final Widget child;
  final EdgeInsets padding, margin;
  final double circular, blurRadius, spreadRadius;
  final Constraints constraints;

  @override
  Widget build(BuildContext context) {
    return Container(
      padding: padding,
      margin: margin,
      constraints: constraints,
      decoration: BoxDecoration(
        borderRadius: BorderRadius.circular(circular),
        boxShadow: <BoxShadow>[
          BoxShadow(
            color: color,
            spreadRadius: spreadRadius,
            blurRadius: blurRadius,
          )
        ],
      ),
      child: child,
    );
  }
}
